package com.ytsky.quotesystem.service.impl;

import com.ytsky.quotesystem.dao.ArticleMapper;
import com.ytsky.quotesystem.dao.InfoMapper;
import com.ytsky.quotesystem.entity.Info;
import com.ytsky.quotesystem.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InfoServiceImpl implements InfoService {

    @Autowired
    private InfoMapper infoMapper;

    /**
     * 添加用户个性签名
     * @param info
     * @return
     */
    @Override
    public boolean append(Info info) {
        return infoMapper.insert(info) >0;
    }

    /**
     * 修改用户个性签名
     * @param info
     * @return
     */
    @Override
    public boolean modify(Info info) {
        return infoMapper.updateByIds(info) >0;
    }

}
